<? global $cat, $cat1,$cat2, $lg, $hotel, $room; ?>
<div class="container-form">
  <form action="<?=$FullUrl?>/index.php?do=orders&act=<?php
			if($_GET['act'] == 'add')
				print('addsm');
			else
				print('editsm');
        	?>" method="post">
            
    <table class="frm" width="600">
      <tr>
        <td width="130">Tên khách sạn</td>
        <td colspan="4"><?=$hotel['name_'.$lg]?><input type="text" style="display:none" name="name_vn" value="<?=$hotel['name_'.$lg]?>"/>
        <input type="text" style="display:none" name="id_hotel" value="<?=$hotel['id']?>"/>
        <input type="text" style="display:none" name="id_room" value="<?=$_GET['id']?>"/></td>
      </tr>
      <tr>
        <td>Loại khách sạn</td>
        <td colspan="4"><?=$hotel['star']?>
          <img src="<?=$FullUrl?>/images/star-ico.png"><input type="text" style="display:none" name="star" value="<?=$hotel['star']?>"/></td>
      </tr>
      <tr>
        <td>Địa chỉ</td>
        <td colspan="4"><?=$hotel['address_'.$lg]?><input type="text" style="display:none" name="address_vn" value="<?=$hotel['address_'.$lg]?>"/></td>
      </tr>
      <tr>
        <td>Tình / TP</td>
        <td colspan="4"><?=$hotel['name_province']?><input type="text" style="display:none" name="name_province" value="<?=$hotel['name_province']?>"/><input type="hidden" size="70" class="textboxroundequalfckeditor"  name="id_province" value="<?=$hotel['id_province']?>" /></td>
      </tr>
      <tr>
        <td>Loại Phòng</td>
        <td colspan="4"><?=$room['name_'.$lg]?>
        <input type="text" style="display:none" name="room_name_vn" value="<?=$room['name_'.$lg]?>"/> 
		<?=($_GET['group']=='simple'? '(Phòng Đơn': '(Phòng Đôi')?> - <?=($_GET['group']=='simple' ? $room['cost_simple'] : $room['cost_double'])?> USD)
        <input type="hidden" name="type_room" value="<?=($_GET['group']=='simple'? '(Phòng Đơn': '(Phòng Đôi')?> - <?=($_GET['group']=='simple' ? $room['cost_simple'] : $room['cost_double'])?> USD)">
        <input type="text" style="display:none" name="loaiphongkm" value="<?=$room['loaiphongkm']?>"/>
        </td>
      </tr>
    
      <tr>
        <td>Họ tên</td>
        <td colspan="4"><input type="text" name="name" id="name"/></td>
      </tr>
      <tr>
        <td>Địa chỉ</td>
        <td colspan="4"><input type="text" name="address" id="address"/></td>
      </tr>
      <tr>
        <td>Điện thoại</td>
        <td colspan="4"><input type="text" name="phone" id="phone"/></td>
      </tr>
      <tr>
        <td>Email</td>
        <td colspan="4"><input type="text" name="email" id="email"/></td>
      </tr>
      <tr>
        <td>Ngày đến</td>
        <td><ul class="date-thue">
            <input id="datepickerbegin" type="text" style="width:40%; margin-right:10px;" name="datepickerbegin">
           
            Ngày đi
            <input id="datepickerend" type="text" style="width:40%; float:right; margin-right: 10px;" name="datepickerend">
           
          </ul></td>
        <td colspan="3"></td>
      </tr>
      <tr>
        <td>Số lượng phòng</td>
        <td colspan="4"><input type="text" name="num_room" id="num_room" style="width:40%;" value="1"/>
        <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="cost_room" value="<?=($_GET['group']=='simple' ? $room['cost_simple'] : $room['cost_double'])?>" />
        
            <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="cost_simple_hotel" value="<?=$room['cost_simple_hotel']?>" />
                <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="cost_double_hotel" value="<?=$room['cost_double_hotel']?>" />
        </td>
      </tr>
       
      <!--<tr>
        <td>Số phòng đơn</td>
        <td colspan="4" class="phong-doi-don"><span>
          <input id="numroom" class="txtsmall" type="text" name="num_simple"/>
          <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="cost_simple_hotel" value="<?=$room['cost_simple_hotel']?>" />
          </span> <span>Số phòng đôi:</span> <span>
          <input class="txtsmall" type="text" name="num_double"/>
          <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="cost_double_hotel" value="<?=$room['cost_double_hotel']?>" />
          </span> <span>Người lớn
          <input class="txtsmall" type="text" name="num_people"/>
          </span></td>
      </tr>-->
      <tr>
        <td>Trẻ em</td>
        <td colspan="4"><ul class="tre-em">
            <li> <span>Tuổi từ 0 đến 6 (miễn phí)</span> <span>
              <input type="text" class="txtsmall" name="children_under_six" value="0"/>
              </span> </li>
            <li> <span>Tuổi từ 6 đến 12 (Thêm extrabed)</span> <span>
              <input type="text" class="txtsmall" name="children_over_six" value="0"/>
              <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="extrabed_price" value="<?=$hotel['extrabed_price']?>" /> (Phụ thu thêm)
              </span> </li>
          </ul></td>
      </tr>
      <tr>
        <td>Ghi chú</td>
        <td colspan="4"><textarea name="note_hotel"></textarea></td>
      </tr>
      <tr>
        <td></td>
        <td colspan="4">
        <input id="btn-z" type="submit" value="Gửi" onclick="return CheckPayment();"/>
        <input type="hidden" size="70" class="textboxroundequalfckeditor"  name="id" value="<?=isset($_GET['id']) ? $_GET['id'] : ''?>" /></td>
      </tr>
    </table>
  </form>
</div>
